import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_sms",{schema:"fastadmin" } )
export class fa_sms {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"event"
        })
    event:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:20,
        name:"mobile"
        })
    mobile:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:10,
        name:"code"
        })
    code:string;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"times"
        })
    times:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"ip"
        })
    ip:string;
        

    @Column("int",{ 
        nullable:true,
        default: () => "'0'",
        name:"createtime"
        })
    createtime:number | null;
        
}
